<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<!--[if lt IE 9]>
    <script src="jquery-1.9.0.js"></script>
<![endif]-->
		<!--[if gte IE 9]><!-->
		<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
		<!--<![endif]-->
		<script type="text/javascript">
			$(document).ready(function() {
				$("div").on("click", "button", function(event) {
					$(event.delegateTarget).css("background-color", "pink");
				});
			});
		</script>
	</head>

	<body>

		<div style="background-color:yellow">
			<p>点击按钮修改这个 div 元素的背景颜色。</p>
			<button>点我!</button>
		</div>

		<div style="background-color:yellow">
			<p>点击按钮修改这个 div 元素的背景颜色。</p>
			<button>点我!</button>
		</div>
	</body>

</html>